/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpb.projetoesa.dados;

/**
 *
 * @author leonardo
 */
public abstract class DisciplinaDAOFactory {

    
    public static final int BD = 1;
    public static final int FILE = 2;
    
    
    public abstract DisciplinaDAO getDisciplinaDAO(int tipo);
    
    
    public static DisciplinaDAOFactory getDisciplinaDAOFactory(int tipoPersistencia){
        
        switch (tipoPersistencia) {
            
            case BD:
                return DisciplinaDAOBDFactory.getInstance();
            case FILE:
                return DisciplinaDAOArquivoFactory.getInstance(); 
            default:
                return null;
        }
        
    }
    
}
